<?php
/**
 * @link https://www.kancloud.cn/cleverstone/ymb2
 * @copyright Copyright (c) 2020 Yii Manager Software LLC
 */
/* ================== ajax额外数据模板  ================== */
/** @var \yii\web\View $this */
/** @var array $cols 字段列定义 */
// __extraData scope数据模型对象
?>
<div ng-if="__extraData" class="list-group list-group-horizontal layui-border border-bottom-0 f13">
<?php foreach ($cols as $field => $label): ?>
    <div class="list-group-item" ng-if="__extraData['<?= $field ?>']">
        <div class="inline-block"><?= $label ?></div>
        <div class="inline-block" ngx-bind-html="$compileHtml( __extraData['<?= $field ?>'] )"></div>
    </div>
<?php endforeach; ?>
</div>
